﻿using agsXMPP.Xml.Dom;

namespace Lapd.Common.CustomStanzas
{
    public class Listen : Element
    {
        /*
            <listen instancename="SampleTopic">
		    </listen>
         */

        public Listen()
        {
            TagName = ServiceDdsConstants.LISTEN_TAG;
        }

        public Listen(string instanceName)
            : this()
        {
            InstanceName = instanceName;
        }

        public string InstanceName
        {
            get
            {
                return GetAttribute(ServiceDdsConstants.LISTEN_INSTANCE_ATTRIBUTE);
            }

            set
            {
                SetAttribute(ServiceDdsConstants.LISTEN_INSTANCE_ATTRIBUTE, value);
            }
        }
    }
}
